精选文章 >> SQL之家 >> 如何操作大容量的字符串,特别是在SQL下? [查看别人的评论]

由 amtd 发布于: 2001-02-13 18:40

Post

如何操作大容量的字符串
dim dataconn
Set DataConn = Server.CreateObject("ADODB.Connection")
dataconn.open "yourDSN","yourName","yourPass"
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set InsertCursor = Server.CreateObject("ADODB.Recordset")
    cmdTemp.CommandText = _
"SELECT *, UserName FROM yourField WHERE (UserName IS NULL)"
    cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn
    InsertCursor.Open cmdTemp, , 1, 3
    InsertCursor.AddNew
InsertCursor("yourMemo") =strMemo
    InsertCursor.Update
    InsertCursor.close
    dataConn.close


__________________
真实源于生活!
请访问我们的网站:
(VB爱好者乐园)
http://www.vbgood.com
http://www.d1vb.com
http://61.128.97.225/vbgood/index.asp
拥有1800多个资料!

点这里对该文章发表评论

该文章总得分是 0 分,你认为它对你有帮助吗? [非常多](0) [有一些](0) [无帮助](0) [是灌水](0)

Copyright © 2001 - 2009 JSP001.com . All Rights Reserved